package cn.com.klun.tjy.web.controller;


import cn.com.klun.tjy.dao.entity.TblAllStockInfo;
import cn.com.klun.tjy.dao.mapper.ser.TblAllStockInfoSerMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("test")
public class DaoTestController {

    private static final Logger logger = LoggerFactory.getLogger(DaoTestController.class);

    @Autowired
    private TblAllStockInfoSerMapper tblAllStockInfoSerMapper;

    @RequestMapping("test")
    public String testDao(){

        TblAllStockInfo tblAllStockInfo =new TblAllStockInfo();
        List<TblAllStockInfo> tblAllStockInfos = tblAllStockInfoSerMapper.queryList(tblAllStockInfo);

        for (int i = 0; i < tblAllStockInfos.size(); i++) {
            logger.info(tblAllStockInfos.toString());
        }
        return "tests";
    }

}
